.class public final Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;
.super Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;
.source "BurstlyImageAdaptor.java"

# interfaces
.implements Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer$IOverlayListener;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;
    }
.end annotation


# static fields
.field private static final FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo; = null

.field static final NETWORK_NAME:Ljava/lang/String; = "burstlyImage"

.field private static final TRANSPARENT_INTERSTITIAL_EXTENDED_PROPERTY_FLAG:I = 0x1000

.field static sImageAdaptor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;


# instance fields
.field mImage:Landroid/widget/ImageView;

.field private mImageUrl:Ljava/lang/String;

.field private mInterstitialShowtime:Ljava/lang/Integer;

.field mInterstitialView:Landroid/view/View;

.field mIsInterstitial:Z

.field private mIsTransparentBg:Z

.field private mLoadImageTask:Lcom/burstly/lib/network/request/ImageFetchTask;


# direct methods
.method static constructor <clinit>()V
    .locals 3

    .prologue
    .line 66
    new-instance v0, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    const-string v1, "burstlyImage"

    const/4 v2, 0x1

    invoke-direct {v0, v1, v2}, Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;-><init>(Ljava/lang/String;Z)V

    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    return-void
.end method

.method constructor <init>(Landroid/content/Context;Ljava/lang/String;)V
    .locals 2
    .parameter "context"
    .parameter "viewId"

    .prologue
    .line 191
    invoke-direct {p0, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    .line 192
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, " BurstlyImageAdaptor"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mTag:Ljava/lang/String;

    .line 193
    invoke-static {p1}, Lcom/burstly/lib/service/SdCardWatchingService;->startWatching(Landroid/content/Context;)V

    .line 194
    invoke-static {p1}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache;->initCache(Landroid/content/Context;)V

    .line 195
    return-void
.end method

.method static synthetic access$000(Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 51
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mTag:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$100()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 51
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method static synthetic access$200(Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 51
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mTag:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$300()Lcom/burstly/lib/util/LoggerExt;
    .locals 1

    .prologue
    .line 51
    sget-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    return-object v0
.end method

.method private downloadImage(Z)V
    .locals 4
    .parameter "isPrecache"

    .prologue
    .line 376
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;

    const/4 v2, 0x0

    invoke-direct {v0, p0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$1;)V

    .line 377
    .local v0, callback:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;
    iget-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsInterstitial:Z

    #calls: Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;->setIsInterstitial(Z)V
    invoke-static {v0, v2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;->access$500(Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;Z)V

    .line 378
    #calls: Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;->setPrecache(Z)V
    invoke-static {v0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;->access$600(Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$ImageCallback;Z)V

    .line 379
    new-instance v2, Lcom/burstly/lib/network/request/ImageFetchTask;

    iget-object v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mImageUrl:Ljava/lang/String;

    invoke-direct {v2, v3, v0}, Lcom/burstly/lib/network/request/ImageFetchTask;-><init>(Ljava/lang/String;Lcom/burstly/lib/network/request/IRequestCallback;)V

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mLoadImageTask:Lcom/burstly/lib/network/request/ImageFetchTask;

    .line 380
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mLoadImageTask:Lcom/burstly/lib/network/request/ImageFetchTask;

    invoke-static {}, Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache;->getInstance()Lcom/burstly/lib/component/networkcomponent/burstly/ImageCache;

    move-result-object v3

    invoke-virtual {v2, v3}, Lcom/burstly/lib/network/request/ImageFetchTask;->setCache(Lcom/burstly/lib/persistance/IResourse;)V

    .line 381
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    .line 382
    .local v1, context:Landroid/content/Context;
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mLoadImageTask:Lcom/burstly/lib/network/request/ImageFetchTask;

    invoke-static {v1}, Lcom/burstly/lib/util/Utils;->getScale(Landroid/content/Context;)F

    move-result v3

    invoke-virtual {v2, v3}, Lcom/burstly/lib/network/request/ImageFetchTask;->setScale(F)V

    .line 383
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mLoadImageTask:Lcom/burstly/lib/network/request/ImageFetchTask;

    const/4 v3, 0x0

    new-array v3, v3, [Ljava/lang/Void;

    invoke-virtual {v2, v3}, Lcom/burstly/lib/network/request/ImageFetchTask;->execute([Ljava/lang/Object;)Landroid/os/AsyncTask;

    .line 384
    return-void
.end method

.method private getAd(Z)Landroid/view/View;
    .locals 1
    .parameter "precache"

    .prologue
    .line 361
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsInterstitial:Z

    if-nez v0, :cond_0

    .line 362
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->createImageView()Landroid/widget/ImageView;

    move-result-object v0

    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mImage:Landroid/widget/ImageView;

    .line 363
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->downloadImage(Z)V

    .line 364
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mImage:Landroid/widget/ImageView;

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->wrapImageView(Landroid/widget/ImageView;)Landroid/view/ViewGroup;

    move-result-object v0

    .line 367
    :goto_0
    return-object v0

    .line 366
    :cond_0
    invoke-direct {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->downloadImage(Z)V

    .line 367
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static handleInterstitial(Landroid/graphics/Bitmap;ZLcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;)V
    .locals 2
    .parameter "bMap"
    .parameter "isPrecache"
    .parameter "adaptor"

    .prologue
    .line 205
    invoke-virtual {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->createImageView()Landroid/widget/ImageView;

    move-result-object v0

    .line 206
    .local v0, imageView:Landroid/widget/ImageView;
    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setImageBitmap(Landroid/graphics/Bitmap;)V

    .line 207
    invoke-direct {p2, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->wrapImageView(Landroid/widget/ImageView;)Landroid/view/ViewGroup;

    move-result-object v1

    invoke-static {v1, p1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->handleInterstitial(Landroid/view/View;ZLcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;)V

    .line 208
    return-void
.end method

.method static handleInterstitial(Landroid/view/View;ZLcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;)V
    .locals 8
    .parameter "img"
    .parameter "isPrecache"
    .parameter "adaptor"

    .prologue
    const/4 v7, 0x1

    const/4 v5, -0x2

    const/4 v6, 0x0

    .line 218
    iput-object p0, p2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialView:Landroid/view/View;

    .line 219
    invoke-virtual {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v3

    const-string v4, "burstlyImage"

    invoke-interface {v3, v4, v7}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->didLoad(Ljava/lang/String;Z)V

    .line 220
    if-nez p1, :cond_2

    .line 221
    if-eqz p0, :cond_3

    .line 222
    new-instance v3, Landroid/widget/FrameLayout$LayoutParams;

    const/16 v4, 0x11

    invoke-direct {v3, v5, v5, v4}, Landroid/widget/FrameLayout$LayoutParams;-><init>(III)V

    invoke-virtual {p0, v3}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 225
    new-instance v0, Lcom/burstly/lib/component/AdaptorCustomFullscreen;

    invoke-virtual {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getContext()Landroid/content/Context;

    move-result-object v3

    invoke-direct {v0, v3}, Lcom/burstly/lib/component/AdaptorCustomFullscreen;-><init>(Landroid/content/Context;)V

    .line 226
    .local v0, adaptorCustom:Lcom/burstly/lib/component/AdaptorCustomFullscreen;
    invoke-virtual {v0, p0}, Lcom/burstly/lib/component/AdaptorCustomFullscreen;->addView(Landroid/view/View;)V

    .line 227
    iget-boolean v3, p2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsTransparentBg:Z

    if-eqz v3, :cond_0

    .line 228
    invoke-virtual {v0, v6}, Lcom/burstly/lib/component/AdaptorCustomFullscreen;->setBackgroundColor(I)V

    .line 230
    :cond_0
    invoke-virtual {p0, v7}, Landroid/view/View;->setFocusableInTouchMode(Z)V

    .line 231
    invoke-virtual {p0}, Landroid/view/View;->requestFocus()Z

    .line 233
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;

    const-string v3, "burstlyImage"

    invoke-direct {v1, v0, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;-><init>(Landroid/view/View;Ljava/lang/String;)V

    .line 235
    .local v1, fullscreenImg:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer<*>;"
    invoke-virtual {p2}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v3

    invoke-virtual {v3}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getSkipButtonActivationTime()Ljava/lang/Integer;

    move-result-object v2

    .line 236
    .local v2, skipButtonActivationTime:Ljava/lang/Integer;
    if-eqz v2, :cond_1

    .line 237
    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v3

    mul-int/lit16 v3, v3, 0x3e8

    invoke-virtual {v1, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->setCloseButtonActivationTimeout(I)V

    .line 239
    :cond_1
    invoke-virtual {v1, v6}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->setRemoveOverlayedChildren(Z)V

    .line 240
    iget-object v3, p2, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialShowtime:Ljava/lang/Integer;

    invoke-virtual {v1, v3}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->setInterstitialShowtime(Ljava/lang/Integer;)V

    .line 241
    invoke-virtual {v1, p2}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->setOverlayListener(Lcom/burstly/lib/component/networkcomponent/burstly/OverlayContainer$IOverlayListener;)V

    .line 242
    invoke-virtual {v1}, Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;->showOverlayed()V

    .line 248
    .end local v0           #adaptorCustom:Lcom/burstly/lib/component/AdaptorCustomFullscreen;
    .end local v1           #fullscreenImg:Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer;,"Lcom/burstly/lib/component/networkcomponent/burstly/FullscreenOverlayContainer<*>;"
    .end local v2           #skipButtonActivationTime:Ljava/lang/Integer;
    :cond_2
    :goto_0
    return-void

    .line 244
    :cond_3
    sget-object v3, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->LOG:Lcom/burstly/lib/util/LoggerExt;

    const-string v4, "burstlyImage"

    const-string v5, "View to show as custom interstitial is null. This could be cased by invalid success notification from ad network."

    new-array v6, v6, [Ljava/lang/Object;

    invoke-virtual {v3, v4, v5, v6}, Lcom/burstly/lib/util/LoggerExt;->logError(Ljava/lang/String;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    goto :goto_0
.end method

.method private wrapImageView(Landroid/widget/ImageView;)Landroid/view/ViewGroup;
    .locals 5
    .parameter "image"

    .prologue
    .line 289
    const/4 v1, 0x1

    invoke-virtual {p1, v1}, Landroid/widget/ImageView;->setFocusable(Z)V

    .line 290
    new-instance v0, Lcom/burstly/lib/component/networkcomponent/ClickAwareWrapper;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v2

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getViewId()Ljava/lang/String;

    move-result-object v3

    const-string v4, "burstlyImage"

    invoke-direct {v0, v1, v2, v3, v4}, Lcom/burstly/lib/component/networkcomponent/ClickAwareWrapper;-><init>(Landroid/content/Context;Lcom/burstly/lib/component/IBurstlyAdaptorListener;Ljava/lang/String;Ljava/lang/String;)V

    .line 292
    .local v0, clickAwareWrapper:Landroid/view/ViewGroup;
    invoke-virtual {v0, p1}, Landroid/view/ViewGroup;->addView(Landroid/view/View;)V

    .line 293
    return-object v0
.end method


# virtual methods
.method protected checkParameters(Ljava/util/Map;)V
    .locals 6
    .parameter
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "*>;)V"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/lang/IllegalArgumentException;
        }
    .end annotation

    .prologue
    .local p1, paramsFromServer:Ljava/util/Map;,"Ljava/util/Map<Ljava/lang/String;*>;"
    const/4 v4, 0x0

    const/4 v3, 0x1

    .line 262
    invoke-super {p0, p1}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->checkParameters(Ljava/util/Map;)V

    .line 263
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getImageUrl()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mImageUrl:Ljava/lang/String;

    .line 264
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getIsInterstital()Ljava/lang/Integer;

    move-result-object v1

    .line 265
    .local v1, isInterstital:Ljava/lang/Integer;
    if-eqz v1, :cond_2

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-ne v2, v3, :cond_2

    move v2, v3

    :goto_0
    iput-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsInterstitial:Z

    .line 266
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mImageUrl:Ljava/lang/String;

    const-string v5, "imageUrl can not be null"

    invoke-static {v2, v5}, Lcom/burstly/lib/util/Utils;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V

    .line 267
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getInterstitialShowtime()Ljava/lang/Integer;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialShowtime:Ljava/lang/Integer;

    .line 268
    iget-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialShowtime:Ljava/lang/Integer;

    if-nez v2, :cond_0

    .line 269
    const/16 v2, 0xf

    invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;

    move-result-object v2

    iput-object v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialShowtime:Ljava/lang/Integer;

    .line 275
    :cond_0
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getResponseData()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;

    move-result-object v2

    invoke-virtual {v2}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData;->getAdType()Lcom/burstly/lib/network/beans/ResponseBean$ResponseData$AdType;

    move-result-object v0

    .line 276
    .local v0, adType:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData$AdType;
    if-eqz v0, :cond_1

    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData$AdType;->getExtendedProperty()Ljava/lang/Integer;

    move-result-object v2

    if-eqz v2, :cond_1

    .line 277
    invoke-virtual {v0}, Lcom/burstly/lib/network/beans/ResponseBean$ResponseData$AdType;->getExtendedProperty()Ljava/lang/Integer;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/Integer;->intValue()I

    move-result v2

    and-int/lit16 v2, v2, 0x1000

    if-eqz v2, :cond_3

    move v2, v3

    :goto_1
    iput-boolean v2, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsTransparentBg:Z

    .line 279
    :cond_1
    if-eqz v1, :cond_4

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v2

    if-ne v2, v3, :cond_4

    :goto_2
    iput-boolean v3, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsInterstitial:Z

    .line 280
    return-void

    .end local v0           #adType:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData$AdType;
    :cond_2
    move v2, v4

    .line 265
    goto :goto_0

    .restart local v0       #adType:Lcom/burstly/lib/network/beans/ResponseBean$ResponseData$AdType;
    :cond_3
    move v2, v4

    .line 277
    goto :goto_1

    :cond_4
    move v3, v4

    .line 279
    goto :goto_2
.end method

.method createImageView()Landroid/widget/ImageView;
    .locals 2

    .prologue
    .line 302
    new-instance v0, Landroid/widget/ImageView;

    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getContext()Landroid/content/Context;

    move-result-object v1

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    .line 303
    .local v0, view:Landroid/widget/ImageView;
    iget-boolean v1, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsInterstitial:Z

    if-nez v1, :cond_0

    .line 304
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getLayoutParamsResolver()Lcom/burstly/lib/component/LayoutParametersResolver;

    move-result-object v1

    invoke-virtual {v1}, Lcom/burstly/lib/component/LayoutParametersResolver;->resolveParameters()Landroid/view/ViewGroup$LayoutParams;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 306
    :cond_0
    sget-object v1, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 307
    new-instance v1, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$1;

    invoke-direct {v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor$1;-><init>(Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;)V

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setOnTouchListener(Landroid/view/View$OnTouchListener;)V

    .line 321
    return-object v0
.end method

.method public destroy()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 401
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->destroy()V

    .line 402
    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mImage:Landroid/widget/ImageView;

    .line 403
    iput-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialView:Landroid/view/View;

    .line 404
    sput-object v0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->sImageAdaptor:Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;

    .line 405
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->destroy()V

    .line 406
    return-void
.end method

.method protected doGetNewAd()Landroid/view/View;
    .locals 1

    .prologue
    .line 336
    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getAd(Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public getAdType()Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;
    .locals 1

    .prologue
    .line 326
    iget-boolean v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mIsInterstitial:Z

    if-eqz v0, :cond_0

    sget-object v0, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->INTERSTITIAL_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    :goto_0
    return-object v0

    :cond_0
    sget-object v0, Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;->BANNER_AD_TYPE:Lcom/burstly/lib/component/IBurstlyAdaptor$BurstlyAdType;

    goto :goto_0
.end method

.method public getNetworkName()Ljava/lang/String;
    .locals 1

    .prologue
    .line 331
    const-string v0, "burstlyImage"

    return-object v0
.end method

.method public onCloseOverlay()V
    .locals 2

    .prologue
    .line 257
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->dismissedFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 258
    return-void
.end method

.method public onShowOverlay()V
    .locals 2

    .prologue
    .line 252
    invoke-virtual {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getAdaptorListener()Lcom/burstly/lib/component/IBurstlyAdaptorListener;

    move-result-object v0

    sget-object v1, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->FULLSCREEN_INFO:Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;

    invoke-interface {v0, v1}, Lcom/burstly/lib/component/IBurstlyAdaptorListener;->shownFullscreen(Lcom/burstly/lib/component/IBurstlyAdaptorListener$FullscreenInfo;)V

    .line 253
    return-void
.end method

.method public precacheAd()Landroid/view/View;
    .locals 1

    .prologue
    .line 341
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->getAd(Z)Landroid/view/View;

    move-result-object v0

    return-object v0
.end method

.method public precacheInterstitialAd()V
    .locals 1

    .prologue
    .line 346
    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->downloadImage(Z)V

    .line 347
    return-void
.end method

.method public showPrecachedInterstitialAd()V
    .locals 2

    .prologue
    .line 351
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mInterstitialView:Landroid/view/View;

    const/4 v1, 0x0

    invoke-static {v0, v1, p0}, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->handleInterstitial(Landroid/view/View;ZLcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;)V

    .line 352
    return-void
.end method

.method public stop()V
    .locals 2

    .prologue
    .line 393
    invoke-super {p0}, Lcom/burstly/lib/component/networkcomponent/burstly/AbstractBurstlyAdaptor;->stop()V

    .line 394
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mLoadImageTask:Lcom/burstly/lib/network/request/ImageFetchTask;

    if-eqz v0, :cond_0

    .line 395
    iget-object v0, p0, Lcom/burstly/lib/component/networkcomponent/burstly/BurstlyImageAdaptor;->mLoadImageTask:Lcom/burstly/lib/network/request/ImageFetchTask;

    const/4 v1, 0x1

    invoke-virtual {v0, v1}, Lcom/burstly/lib/network/request/ImageFetchTask;->cancel(Z)Z

    .line 397
    :cond_0
    return-void
.end method

.method public supports(Ljava/lang/String;)Z
    .locals 1
    .parameter "action"

    .prologue
    .line 388
    const/4 v0, 0x1

    return v0
.end method
